"""TPM_WEB URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from TPM_WEB.views import index
from TPM_WEB.views import user
from TPM_WEB.views import get_users
from TPM_WEB.views import save_user
from TPM_WEB.views import update_user
from TPM_WEB.views import remove_user
from TPM_WEB.views import error
from TPM_WEB.views import get_error
from TPM_WEB.views import save_error
from TPM_WEB.views import update_error
from TPM_WEB.views import remove_error
from TPM_WEB.views import trace
from TPM_WEB.views import get_trace
# from TPM_WEB.views import save_plan
# from TPM_WEB.views import update_plan
# from TPM_WEB.views import remove_plan
from TPM_WEB.cron import send_mail
from TPM_WEB.views import confirm
from TPM_WEB.views import export_excel
from TPM_WEB.views import get_error_name

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', index),
	url(r'^user$', user),
    url(r'^get_users$',get_users),
    url(r'^save_user$',save_user),
    url(r'^update_user$',update_user),
    url(r'^remove_user$',remove_user),
    url(r'^error$',error),
    url(r'^get_error$',get_error),
    url(r'^save_error$',save_error),
    url(r'^update_error$',update_error),
    url(r'^remove_error$',remove_error),
    url(r'^trace$',trace),
    url(r'^get_plan$',get_trace),
    # url(r'^save_plan$',save_plan),
    # url(r'^update_plan$',update_plan),
    # url(r'^remove_plan$',remove_plan),
    url(r'^send_mail$',send_mail),
    url(r'^confirm$',confirm),
    url(r'^export_excel$',export_excel),
    url(r'^get_error_name$',get_error_name),
]
